package com.jinke.uang.presenter;


import com.jinke.uang.base.BasePersenter;
import com.jinke.uang.interfaces.ICommonPresenter;
import com.jinke.uang.interfaces.ICommonView;

//todo p 层实体类
public class CommonPresenter extends BasePersenter implements ICommonPresenter, ICommonView {

    @Override
    public void getData(int apiType,String listType, Object... t) {
      if(getM()!=null) getM().getData(this,apiType,listType,t);
    }

    @Override
    public void showResponse(int apiType,String listType, Object o) {
       if(getV()!=null) getV().showResponse(apiType,listType,o);
    }

    @Override
    public void showError(Throwable e) {
       if(getV()!=null) getV().showError(e);
    }
}
